package com.spring.cloud.weather.report.service;

import com.spring.cloud.weather.report.vo.City;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/3/21
 */
@Component
public class CityClientFallBack implements CityClient {

    @Override
    public List<City> listCity() throws Exception {
        List<City> cityList = new ArrayList<>();
        City city = new City();
        city.setCityId("101280101");
        city.setCityName("广州");
        cityList.add(city);
        city = new City();

        city.setCityId("101280601");
        city.setCityName("深圳");
        cityList.add(city);
        return cityList;
    }

}
